 

package com.zdkj.subway.check.service;

import com.zdkj.common.core.constant.SecurityConstants;
import com.zdkj.common.core.util.R;
import com.zdkj.subway.check.entity.SwMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

@FeignClient(contextId = "commonService", value = "zdkj-subway-support")
public interface CommonService {

	@PostMapping("/swmessage/innerBatch")
	R innerBatch(@RequestBody List<SwMessage> swMessages, @RequestHeader(SecurityConstants.FROM) String from);

	@PostMapping("/swmessage/inner")
	R saveInner(@RequestBody SwMessage swMessage, @RequestHeader(SecurityConstants.FROM) String from);

}
